﻿using Common.Infrastructure;

namespace Base.Data.Entity
{
    public class t_department : TreeEntityBase
    {
        [EntityFieldLength(30)]
        [EntityFieldIndex]
        public string code { get; set; }

        [EntityFieldLength(60)]
        public string name { get; set; }
        public int enable_status { get; set; }
        public string remark { get; set; }

        public bool is_line { get; set; }

        /// <summary>
        /// 部门负责人
        /// </summary>
        public string user_id { get; set; }

        /// <summary>
        /// 兼岗负责人
        /// </summary>
        public string alias_user_id { get; set; }

        /// <summary>
        /// 等级DepLevelEnum  无 = 0, 线体 = 1,部门 = 3,车间 = 4,
        /// </summary>
        public int level { get; set; }

        /// <summary>
        /// 是否参与经营报表统计
        /// </summary>
        public bool is_statis { get; set; }

        /// <summary>
        /// API的键值
        /// </summary>
        [EntityFieldLength(80)]
        public string api_key { get; set; }
    }
}
